package com.cx.common.mybatisplus.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * 分页转换切面
 */
@Aspect
@Component
public class PageAspect {

    @Pointcut("@annotation(com.cx.common.mybatisplus.annotation.ToPage)")
    public void pointCut() {

    }

    @Before("pointCut()")
    public void checkUserRole(JoinPoint point) {
    }
}
